/*
 * @Description: 服务地址路径
 * @Author: Mr.Wen
 * @Version: v1.0.0
 * @Date: 2021-03-04 21:32:46
 * @LastEditors: Mr.Wen - 文先生
 * @LastEditTime: 2024-01-02 10:03:13
 */

'use strict';

const { NODE_ENV, VITE_BASE_API } = process.env;

const baseUrl = {};

if (NODE_ENV === 'development') { // 开发环境
  baseUrl.SERVERURI = 'http://192.168.3.184:13306';
  baseUrl.BASE_URL = VITE_BASE_API;


} else if (NODE_ENV === 'production') { // 生产环境
  baseUrl.SERVERURI = 'http://10.108.16.29:13306';


} else if (NODE_ENV === 'test') { // 测试环境
  baseUrl.SERVERURI = 'http://8.129.118.29:13306';

}

const { SERVERURI, BASE_URL } = baseUrl;

const serviceUri = {
  /** 案例地址 */
  dlmhUri: `${SERVERURI}/dlmh`,
  apiUrl: `${BASE_URL}/admin`
};

export default serviceUri;
// module.exports = serviceUri;
